package com.atguigu.dao;


import com.atguigu.base.BaseDao;
import com.atguigu.entity.Permission;

import java.util.List;

public interface PermissionDao extends BaseDao<Permission> {

    List<Permission> findAll();

    List<Permission> findByParenId(Long id);

    /**
     * 根据用户id查询权限列表
     * @param adminId
     * @return
     */
    List<Permission> findMenuPermissionByAdminId(Long adminId);

    List<String> findPermissionListByAdminId(Long adminId);
}
